package com.zhichat.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhichat.entity.GroupInfoEntity;
import com.zhichat.web.dto.dao.AdminGroupListQuery;
import com.zhichat.web.vo.AdminGroupInfoVO;
import com.zhichat.web.vo.GroupMemberDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 群信息表
 *
 * @author zqli
 * @email lzq@hello.com
 * @date 2024-11-09 22:14:14
 */
@Mapper
@Repository
public interface GroupInfoDao extends BaseMapper<GroupInfoEntity> {

    /**
     * 获取群成员详情列表
     */
    List<GroupMemberDetailVO> getGroupMembersDetailList(@Param("groupId") Long groupId);

    List<AdminGroupInfoVO> getGroupInfoListOfAdmin(AdminGroupListQuery query);
}
